package com.cxx.home.entity;

import com.baomidou.mybatisplus.annotation.FieldStrategy;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cxx.framework.data.AbstractEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("plan")
public class Plan extends AbstractEntity {
    @TableField("title")
    private String title;

    @TableField("content")
    private String content;

    @TableField(value = "date", updateStrategy = FieldStrategy.ALWAYS)
    private Date date;

    @TableField(value = "start_time", updateStrategy = FieldStrategy.ALWAYS)
    private Date startTime;

    @TableField(value = "end_time", updateStrategy = FieldStrategy.ALWAYS)
    private Date endTime;

    @TableField(value = "alter_time", updateStrategy = FieldStrategy.ALWAYS)
    private Date alterTime;

    @TableField(value = "task_id", updateStrategy = FieldStrategy.ALWAYS)
    private Long taskId;

    @TableField("tag")
    private String tag;

    @TableField("is_top")
    private Integer isTop;

    @TableField("priority")
    private Integer priority;

    @TableField("completed")
    private Integer completed;
}
